package com.chenqi.community.service;

import com.chenqi.community.entity.User;

import java.util.List;

public interface UserService {
    //查找所有用户
    List<User> findAllUser();

    //登陆
    User login(String username, String password);

    //注册用户
    void save(User user);

    //查看用户信息
    User findUserInfo(Integer uid);

    //更新用户信息
    void editUserInfo(User user);

    //锁定和解锁
    void LockAndUnlock(Integer uid, Integer status);

    //修改用户权限
    void editUserOwner(Integer uid, Integer owner);

    //根据用户名查找用户
    User findUserByUsername(String username);
}
